package com.bestcem.xm.award.grpc.service.param.award;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * 删除附件
 *
 * @author jie.yao <jie.yao@idiaoyan.com>
 * @version v1.0
 * @date 2021/7/9 14:42
 */
@ToString
@NoArgsConstructor
@Getter
@Setter
public class DeleteAttachmentParam {

    /**
     * 附件id
     */
    @NotBlank(message = ErrorMessage.ATTACHMENT_ID_NULL_ERROR)
    private String attachmentId;

    /**
     * 奖励id
     */
    private String awardId;

    public static class ErrorMessage {
        public static final String ATTACHMENT_ID_NULL_ERROR = "附件id不能为空";

        private ErrorMessage() {
        }
    }
}
